<!doctype html>
<html lang="en"><head>
    <title>HDFS启动流程</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="../../../css/theme.css"/>
    
</head>
<body>
        <div id="content" class="mx-auto"><header class="container mt-sm-5 mt-4 mb-4 mt-xs-1">
    <div class="row">
        <div class="col-sm-4 col-12 text-sm-right text-center pt-sm-4">
            <a href="../../../" class="text-decoration-none">
                <img id="home-image" class="rounded-circle"
                    
                        src="../../../images/avatar.png"
                    
                />
            </a>
        </div>
        <div class="col-sm-8 col-12 text-sm-left text-center">
            <h2 class="m-0 mb-2 mt-4">
                <a href="../../../" class="text-decoration-none">
                    
                        KunYang
                    
                </a>
            </h2>
            <p class="text-muted mb-1">
                
                    Your Creative Subtitle
                
            </p>
            <ul id="nav-links" class="list-inline mb-2">
                
                
                    <li class="list-inline-item">
                        <a class="badge badge-white " href="../../../about/" title="About">About</a>
                    </li>
                
                    <li class="list-inline-item">
                        <a class="badge badge-white " href="../../../posts/" title="Posts">Posts</a>
                    </li>
                
                    <li class="list-inline-item">
                        <a class="badge badge-white " href="../../../categories/" title="Categories">Categories</a>
                    </li>
                
            </ul>
            <ul id="nav-social" class="list-inline">
                
                    <li class="list-inline-item mr-3">
                        <a href="http://www.kunyang.com" target="_blank">
                            <i class="fab fa-github fa-1x text-muted"></i>
                        </a>
                    </li>
                
                    <li class="list-inline-item mr-3">
                        <a href="" target="_blank">
                            <i class="fab fa-linkedin-in fa-1x text-muted"></i>
                        </a>
                    </li>
                
                    <li class="list-inline-item mr-3">
                        <a href="" target="_blank">
                            <i class="fab fa-twitter fa-1x text-muted"></i>
                        </a>
                    </li>
                
                    <li class="list-inline-item mr-3">
                        <a href="" target="_blank">
                            <i class="fas fa-at fa-1x text-muted"></i>
                        </a>
                    </li>
                
            </ul>
        </div>
    </div>
    <hr />
</header>
<div class="container">
    <div class="pl-sm-4 ml-sm-5">
        <blockquote>
<p>HDFS是分布式文件存储的技术，此篇文章主要来深入了解一下HDFS的启动流程</p>
</blockquote>
<h1 id="datanode启动流程">DataNode启动流程</h1>
<ol>
<li>
<p>DataNode启动的类在<code>org.apache.hadoop.hdfs.server.datanode.DataNode.main()</code></p>
<pre><code class="language-mermaid" data-lang="mermaid">classDiagram
 class DataNode{
     +DataNode datanode
   		
     +secureMain(args,resources(null))
   		
 }
   	
</code></pre></li>
</ol>
<h1 id="参考">参考</h1>
<p><a href="https://monkeysayhi.github.io/2018/02/01/%E6%BA%90%E7%A0%81%7CHDFS%E4%B9%8BNameNode%EF%BC%9A%E5%90%AF%E5%8A%A8%E8%BF%87%E7%A8%8B/">NameNode启动流程</a></p>
<p><a href="%5Bhttps://monkeysayhi.github.io/2018/01/18/%E6%BA%90%E7%A0%81%7CHDFS%E4%B9%8BDataNode%EF%BC%9A%E5%90%AF%E5%8A%A8%E8%BF%87%E7%A8%8B/%5D(https://monkeysayhi.github.io/2018/01/18/%E6%BA%90%E7%A0%81%7CHDFS%E4%B9%8BDataNode%EF%BC%9A%E5%90%AF%E5%8A%A8%E8%BF%87%E7%A8%8B/)">DataNode启动流程</a></p>
<p><a href="https://my.oschina.net/juliashine/blog/86260">HDFS-Rebalance</a></p>
<p><a href="https://www.jianshu.com/p/d660839fd0db">阿里云做Balance带宽问题</a></p>
<p><a href="https://blog.csdn.net/jiangshouzhuang/article/details/51879102">rebalance写的比较详细</a></p>
<h1 id="tips">Tips</h1>
<ol>
<li>使用idea的structure可以快速查看当前类的所有方法</li>
</ol>

    </div>

            </div>
        </div><footer class="text-center pb-1">
    <small class="text-muted">
        
            &copy; Copyright 2020, 坤坤
        
        <br>
        Powered by <a href="https://gohugo.io/" target="_blank">Hugo</a>
        and <a href="https://github.com/austingebauer/devise" target="_blank">Devise</a>
    </small>
</footer>
</body>
</html>
